go/types.Checker.pkg (field)

62 uses

	go/types (current package)
		assignments.go#L196: 			if w, _ := obj.(*Var); w != nil && w.pkg == check.pkg {
		assignments.go#L455: 		obj := NewVar(ident.Pos(), check.pkg, name, nil)
		assignments.go#L466: 			lhsVars[i] = NewVar(lhs[i].Pos(), check.pkg, "_", nil)
		builtins.go#L607: 		if !check.allowVersion(check.pkg, 1, 17) {
		builtins.go#L666: 		obj, index, indirect := LookupFieldOrMethod(base, false, check.pkg, sel)
		builtins.go#L733: 		if !check.allowVersion(check.pkg, 1, 17) {
		builtins.go#L865: 		tpar := NewTypeName(token.NoPos, check.pkg, tp.obj.name, nil)
		call.go#L20: 	if !check.allowVersion(check.pkg, 1, 18) {
		call.go#L90: 			check.mono.recordInstance(check.pkg, pos, tparams, targs, xlist)
		call.go#L381: 		if !check.allowVersion(check.pkg, 1, 18) {
		call.go#L448: 			assert(pname.pkg == check.pkg)
		call.go#L545: 	obj, index, indirect = LookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel)
		call.go#L579: 				if obj, _, _ = LookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, changeCase); obj != nil {
		call.go#L691: 				if m := mset.Lookup(check.pkg, sel); m == nil || m.obj != obj {
		call.go#L762: 				if w, _ := obj.(*Var); w != nil && w.pkg == check.pkg {
		check.go#L102: 	pkg  *Package
		check.go#L247: 		pkg:     pkg,
		check.go#L272: 	pkg := check.pkg
		check.go#L357: 	check.pkg.complete = true
		check.go#L491: 				NewVar(pos, check.pkg, "", a[0]),
		check.go#L492: 				NewVar(pos, check.pkg, "", a[1]),
		conversions.go#L193: 					if check == nil || check.allowVersion(check.pkg, 1, 17) {
		decl.go#L213: 		isPkgObj := obj.Parent() == check.pkg.scope
		decl.go#L526: 	if named == nil || named.obj.pkg == check.pkg || named.obj.pkg == nil {
		decl.go#L542: 		if check.isImportedConstraint(rhs) && !check.allowVersion(check.pkg, 1, 18) {
		decl.go#L557: 		if !check.allowVersion(check.pkg, 1, 9) {
		decl.go#L682: 		tname := NewTypeName(name.Pos(), check.pkg, name.Name, nil)
		decl.go#L813: 	pkg := check.pkg
		errors.go#L31: 	if pkg != check.pkg {
		errors.go#L35: 			check.markImports(check.pkg)
		expr.go#L941: 			if !allUnsigned(y.typ) && !check.allowVersion(check.pkg, 1, 13) {
		expr.go#L1382: 					i := fieldIndex(utyp.fields, check.pkg, key.Name)
		expr.go#L1412: 					if !fld.Exported() && fld.pkg != check.pkg {
		initorder.go#L26: 		fmt.Printf("Computing initialization order for %s\n\n", check.pkg)
		interface.go#L206: 		sig.recv = NewVar(name.Pos(), check.pkg, "", recvTyp)
		interface.go#L208: 		m := NewFunc(name.Pos(), check.pkg, name.Name, sig)
		labels.go#L138: 				lbl := NewLabel(s.Label.Pos(), check.pkg, name)
		mono.go#L143: 	qf := RelativeTo(check.pkg)
		named.go#L311: 		if n.obj.pkg != check.pkg {
		resolver.go#L115: 	if ident.Name == "main" && check.pkg.name == "main" {
		resolver.go#L120: 	check.declare(check.pkg.scope, ident, obj, token.NoPos)
		resolver.go#L211: 	pkg := check.pkg
		resolver.go#L243: 		fileScope := NewScope(check.pkg.scope, pos, end, check.filename(fileNo))
		resolver.go#L399: 					if name == "init" || (name == "main" && check.pkg.name == "main") {
		resolver.go#L582: 		obj := check.pkg.scope.Lookup(name.Name)
		signature.go#L227: 					if T.obj.pkg != check.pkg {
		signature.go#L303: 				par := NewParam(name.Pos(), check.pkg, name.Name, typ)
		signature.go#L310: 			par := NewParam(ftype.Pos(), check.pkg, "", typ)
		stmt.go#L722: 				obj := NewVar(lhs.Pos(), check.pkg, lhs.Name, T)
		stmt.go#L883: 					obj = NewVar(ident.Pos(), check.pkg, name, nil)
		stmt.go#L891: 					obj = NewVar(lhs.Pos(), check.pkg, "_", nil) // dummy variable
		struct.go#L93: 		fld := NewField(pos, check.pkg, name, typ, embedded)
		typeset.go#L278: 			if check != nil && check.isImportedConstraint(typ) && !check.allowVersion(check.pkg, 1, 18) {
		typeset.go#L288: 			if check != nil && !check.allowVersion(check.pkg, 1, 18) {
		typeset.go#L303: 			if check != nil && !check.allowVersion(check.pkg, 1, 18) {
		typexpr.go#L46: 		if !check.allowVersion(check.pkg, 1, 18) {
		typexpr.go#L109: 		if obj.pkg == check.pkg {
		typexpr.go#L278: 		if !check.allowVersion(check.pkg, 1, 18) {
		typexpr.go#L484: 				check.mono.recordInstance(check.pkg, pos, inst.tparams.list(), inst.targs.list(), ix.Indices)
		validtype.go#L81: 			assert(t.obj.pkg == check.pkg)
		version.go#L20: 	if len(s) <= 2 || check.allowVersion(check.pkg, 1, 13) {
		version.go#L50: 	if pkg != check.pkg {